#include "stdafx.h"
#include "ckCheckModelManagerFactory.h"
#include "ckCheckModelManager.h"
#include "ckCheckModelManagerAccess.h"
#include "ckCheckModelManagerMySQL.h"

namespace ck
{

	CheckModelManagerFactory::CheckModelManagerFactory()
	{
	}


	CheckModelManagerFactory::~CheckModelManagerFactory()
	{
	}

	CheckModelManagerFactory* CheckModelManagerFactory::GetInstance()
	{
		static CheckModelManagerFactory g_checkModelFactory;
		return &g_checkModelFactory;
	}

	CheckModelManager* CheckModelManagerFactory::GetCheckModelManager(ckDbType type)
	{
		CheckModelManager* pManager = NULL;
		switch (type)
		{
		case ckDbAccess:
		{
			static CheckModelManagerAccess g_checkModelAccess;
			CheckModelManager::m_pInstance = &g_checkModelAccess;

		}
		break;
		case ckDbMySQL:
		{
			static CheckModelManagerMySQL g_checkModelMySQL;
			CheckModelManager::m_pInstance = &g_checkModelMySQL;
		}
		break;
		case ckDbOracle:
			break;
		}

		return CheckModelManager::GetInstance();
	}

}